package com.chuangsi.project.admin.controller.app;


import com.chuangsi.framework.web.controller.BaseController;
import com.chuangsi.framework.web.domain.ResultObject;
import com.chuangsi.framework.web.page.TableDataInfo;
import com.chuangsi.project.admin.dto.admin.defeat.ReqDefeatPageDto;
import com.chuangsi.project.admin.dto.admin.defeat.ResDefeatPageDto;
import com.chuangsi.project.admin.dto.admin.defeat.app.ReqDefeadAddDto;
import com.chuangsi.project.admin.dto.app.product.ResAppProductSelectDto;
import com.chuangsi.project.admin.dto.app.seal.ResAppSealListDto;
import com.chuangsi.project.admin.dto.common.SelectDto;
import com.chuangsi.project.admin.service.DefeatService;
import com.chuangsi.project.admin.service.ProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 产品 前端控制器
 * </p>
 *
 * @author 
 * @since 2024-05-10
 */
@Api(tags="APP-战败记录")
@RestController
@RequestMapping("/userApi/product/app")
public class AppProductController extends BaseController {

    @Autowired
    private ProductService productService;


    @ApiOperation(value = "获取产品下拉选",notes = "杨文博")
    @GetMapping("/getSelect")
    public ResultObject<List<ResAppProductSelectDto>> getSelect(String sealId){
        List<ResAppProductSelectDto> dataList = productService.getSelect(sealId);
        return ResultObject.ok().setData(dataList);
    }

}
